<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>test: TEST/WorStu.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">test
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.7 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_60f03a562a2e326bd289c232b1b46d6c.html">TEST</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">WorStu.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_wor_stu_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/* COPYRIGHT NOTICE</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright (c) 2014 MPIG</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * All rights reserved.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#ifndef  _WORSTU_H_</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#define  _WORSTU_H_</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include  &lt;string&gt;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="student_8h.html">Student.h</a>&quot;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include  &quot;<a class="code" href="_worker_8h.html">Worker.h</a>&quot;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">using namespace </span>std;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="class_wor_stu.html">   33</a></span>&#160;<span class="keyword">class  </span><a class="code" href="class_wor_stu.html">WorStu</a> : <span class="keyword">public</span> <a class="code" href="class_worker.html">Worker</a>, <span class="keyword">public</span> <a class="code" href="class_student.html">Student</a>  </div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;{<span class="keyword">public</span>:</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <a class="code" href="class_wor_stu.html">WorStu</a>();                                       <span class="comment">//默认构造函数</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <a class="code" href="class_wor_stu.html">WorStu</a>(<a class="code" href="class_wor_stu.html">WorStu</a> &amp;ws) : <a class="code" href="class_worker.html">Worker</a>(ws), <a class="code" href="class_student.html">Student</a>(ws) { }    <span class="comment">//拷贝构造函数</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <a class="code" href="class_wor_stu.html">WorStu</a>(<span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> age, <span class="keywordtype">char</span> gender, <span class="keywordtype">char</span> *depw, <span class="keywordtype">char</span> *job, <span class="keywordtype">char</span> *deps, </div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;           <span class="keywordtype">char</span> *spec, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> num) </div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;           : <a class="code" href="class_person.html">Person</a>(name, age, gender), <a class="code" href="class_worker.html">Worker</a>(depw, job), <a class="code" href="class_student.html">Student</a>(deps, spec, num)  </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    { }</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;};</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="class_student_html"><div class="ttname"><a href="class_student.html">Student</a></div><div class="ttdoc">这是一个学生类，继承于person </div><div class="ttdef"><b>Definition:</b> student.h:34</div></div>
<div class="ttc" id="student_8h_html"><div class="ttname"><a href="student_8h.html">student.h</a></div><div class="ttdoc">该文件定义了一个学生类 </div></div>
<div class="ttc" id="class_wor_stu_html"><div class="ttname"><a href="class_wor_stu.html">WorStu</a></div><div class="ttdoc">这是一个技工类，继承于工人类、学生类 </div><div class="ttdef"><b>Definition:</b> WorStu.h:33</div></div>
<div class="ttc" id="_worker_8h_html"><div class="ttname"><a href="_worker_8h.html">Worker.h</a></div><div class="ttdoc">该文件定义了一个工人类 </div></div>
<div class="ttc" id="class_person_html"><div class="ttname"><a href="class_person.html">Person</a></div><div class="ttdoc">提供一个基类 </div><div class="ttdef"><b>Definition:</b> Person.h:34</div></div>
<div class="ttc" id="class_worker_html"><div class="ttname"><a href="class_worker.html">Worker</a></div><div class="ttdoc">这是一个工人类，继承于person </div><div class="ttdef"><b>Definition:</b> Worker.h:34</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2014年 十二月 29日 星期一 19:28:15 , 为 test使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.7
</small></address>
</body>
</html>
